layui.use('laydate', function(){
  var laydate = layui.laydate;
  
  //执行一个laydate实例
  laydate.render({
    elem: '#test1' ,//指定元素
	type:'datetime',
	done: function(value, date, endDate){
		let that = this
		let timeStamp = that.time
		timeStamp = new Date().getTime(value)
		console.log(timeStamp)
		console.log(value); //得到日期生成的值，如：2017-08-18
		return time
	  }
  });
});